If LhA = '' Then Do;Address Command 'C:RequestFile >T:LhA.Path File "LhA" Title "Where is LhA?" NoIcons PubScreen' PubScreen;Open('LhA','T:LhA.Path','R');LhA = ReadLn('LhA');Close('LhA');End
If MultiView = '' Then Do;Address Command 'C:RequestFile >T:MultiView.Path File "MultiView" Title "Where is MultiView?" NoIcons PubScreen' PubScreen;Open('MultiView','T:MultiView.Path','R');MultiView = ReadLn('MultiView');Close('MultiView');End
If Rx = '' Then Do;Address Command 'C:RequestFile >T:Rx.Path File "Rx" Title "Where is Rx?" NoIcons PubScreen' PubScreen;Open('Rx','T:Rx.Path','R');Rx = ReadLn('Rx');Close('Rx');End
If SwazFix = '' Then Do;Address Command 'C:RequestFile >T:SwazFix.Path File "SwazFix" Title "Where is SwazFix?" NoIcons PubScreen' PubScreen;Open('SwazFix','T:SwazFix.Path','R');SwazFix = ReadLn('SwazFix');Close('SwazFix');End
If DIZRespect = '' Then Do;Address Command 'C:RequestFile >T:DIZRespect.Path File "DIZRespect" Title "Where is DIZRespect?" NoIcons PubScreen' PubScreen;Open('DIZRespect','T:DIZRespect.Path','R');DIZRespect = ReadLn('DIZRespect');Close('DIZRespect');End
If SwazFix = '' Then SwazFix = ';No SwazFix Present'
If DizRespect = '' Then DizRespect = ';No DIZRespect Present'
ExtractAs: TopText "Extracting and renaming file(s)..."
Busy On
Subject=0
GoLoop: Busy On
SelectEntry Word(AllFiles,Subject+1) 0 1
GetEntry Word(AllFiles,Subject+1)+1
Name = Result
TstName = Substr(Name,LastPos("/",Name)+1)
Status 13 1-ActiveWin
Path = Result
Call rtgetstring(Name,"(Use '/' in name for dir creation.)" || lf lf || "Enter New File Name:","LhA-Control V2.6","_Extract|_Skip","RTEz_Flags=EZReqF_CenterText RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)
Altered = Result
If RTResult = 0 Then Signal FuncCanceled
Busy On
If Exists(Path || Altered) = 1 Then Address Command 'C:Delete "'Path || WildCard(Altered)'" Quiet'
Call rtezrequest("The file has been changed." || lf || "Would you like to update it?","_Sure!|_Forget it!","LhA-Control V2.6", "RTEz_Flags=EZReqF_CenterText RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)
Call rtezrequest("The file has been changed." || lf || "Would you like to update it?","_Sure!|_Forget it!","LhA-Control V2.6", "RTEz_Flags=EZReqF_CenterText RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)
FindAtr: If left(NoWild,1) = '@' Then NoWild = Insert('*',NoWild,0)
Return NoWild
End: Status 21 ActiveWin set OldBuf
Address Command 'C:Assign "Used By Duff:" Remove'
Address Command 'C:Delete "'Left(TmpPath,Length(TmpPath)-1)'" All NoReq >NIL:'
Busy Off
Exit
Fuser: Call rtezrequest("No file have been selected.","I see","LhA-Control V2.6", "RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)
Busy off
Exit
NotALhAFile: Call rtezrequest("Sorry, but this doesn't seem to be a LhA file.","hmmrf","LhA-Control V2.6", "RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)
Busy off
Exit
AllReady: Call rtezrequest("Sorry, but LhA-Control can't be runned twice!" || lf || "Should I quit the other LhA-Ctrl.","_Quit other|_No, commit suicide","LhA-Control V2.6", "RT_ReqPos=ReqPos_CenterScr RT_PubScrName="PubScreen)